home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / src / joystick.lha / readme < prev   
Encoding:
Text File  |  1993-09-27  |  690 b   |  17 lines

  1. joy.c
  2. -----
  3. This Source Code is 100% Public Domain. 
  4.  
  5.     This is an Example program on how to read joystick values 
  6. quickly.  The system gameport.device is nice but it's not
  7. ideally suited for grabbing joystick values in a hurry, as
  8. is often done in arcade games, etc.  This function is less
  9. friendly than using the gameport.device because it's designed
  10. to be called from a loop, which may not be the best thing
  11. to do in a multitasking situation.  Use this function with
  12. caution as it does read the hardware directly.
  13. This source can read from joysticks in either port
  14. and understands the second fire button used on Sega
  15. style joysticks.
  16.  
  17. Send Questions, Comments, etc to : gfm@gnu.ai.mit.edu